<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="m" uri="/WEB-INF/mil.tld"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta charset="utf-8" />
<title>Blank Page - Ace Admin</title>
<meta name="description" content="" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- basic styles -->
<link href="/statics/YHZ/css/bootstrap.min.css" rel="stylesheet" />
<link href="/statics/YHZ/css/bootstrap-responsive.min.css"
	rel="stylesheet" />
<link rel="stylesheet" href="/statics/YHZ/css/font-awesome.min.css" />
<!--[if IE 7]>
		  <link rel="stylesheet" href="/statics/YHZ/css/font-awesome-ie7.min.css" />
		<![endif]-->
<!-- page specific plugin styles -->
<!-- ace styles -->
<link rel="stylesheet" href="/statics/YHZ/css/ace.min.css" />
<link rel="stylesheet" href="/statics/YHZ/css/ace-responsive.min.css" />
<link rel="stylesheet" href="/statics/YHZ/css/ace-skins.min.css" />
<!--[if lt IE 9]>
		  <link rel="stylesheet" href="/statics/YHZ/css/ace-ie.min.css" />
		<![endif]-->
</head>
<body>
	<!--/.navbar-->
	<jsp:include page="include/navbar.jsp" />
	<!--/.container-fluid-->
	<div class="container-fluid" id="main-container">
		<!-- menu toggler -->
		<jsp:include page="include/menu.jsp" />
		<!--/#sidebar-->
		<div id="main-content" class="clearfix">
			<div id="breadcrumbs">
				<ul class="breadcrumb">
					<li><i class="icon-home"></i> <a href="index.do">主页</a><span
						class="divider"><i class="icon-angle-right"></i></span></li>
					<li class="active">管理滿就減促銷</li>
				</ul>
				<!--.breadcrumb-->
			</div>
			<!--#breadcrumbs-->
			<div id="page-content" class="clearfix">
				<div class="row-fluid">
					<!-- PAGE CONTENT BEGINS HERE -->
					<h3 class="header smaller lighter blue">管理滿就減促銷</h3>
					<ul class="nav nav-tabs">
  						<li <c:if test="${param.status==2}">class="active"</c:if>><a href="fullCutList.do.do?status=2">促销中</a></li>
  						<li <c:if test="${param.status==1}">class="active"</c:if>><a href="fullCutList.do.do?status=1">未开始</a></li>
  						<li <c:if test="${param.status==3}">class="active"</c:if>><a href="fullCutList.do.do?status=3">已结束</a></li>
  						<li <c:if test="${param.status==0}">class="active"</c:if>><a href="fullCutList.do.do?status=0">已取消</a></li>
					</ul>
					</BR>
					<div class="row-fluid">
						<table id="table_bug_report"
							class="table table-striped table-bordered table-hover">
							<thead>
								<tr>
									<th>活动名称</th>
									<th>活动类型</th>
									<th>活动状态</th>
									<th>活动时间</th>
									<th>参加商品</th>
									<th>操作</th>
								</tr>
							</thead>
							<tbody>
								<c:forEach items="${dp.list}" var="e">
								<tr>
									<td>
										<a href="fullCutDetail.do?id=${e.id}_${e.fullMinusType}">${e.promotionTitle}</a>
									</td>
									<td>
										<c:if test="${e.fullMinusType==1}">部分商品参加</c:if>
										<c:if test="${e.fullMinusType==2}">指点分类参加</c:if>
										<c:if test="${e.fullMinusType==3}">分类+品牌</c:if>
										<c:if test="${e.fullMinusType==4}">全场参加</c:if>
									</td>
									<td>
										<c:if test="${e.status==0}">已取消</c:if>
										<c:if test="${e.status==1}">未开始</c:if>
										<c:if test="${e.status==2}">进行中</c:if>
										<c:if test="${e.status==3}">已过期</c:if>
									</td>
									<td>
										<fmt:formatDate value="${e.startDate}" pattern="yyyy-MM-dd hh:mm:ss"/> 至 <fmt:formatDate value="${e.endDate}" pattern="yyyy-MM-dd hh:mm:ss"/>
									</td>
									<td>
										<c:set var="productInfo" value="${fn:split(e.productInfo,';')}"/>${fn:length(productInfo)}
									</td>
									<td><a href="fullCutCancel.do?id=${e.id}">取消</a></td>
								</tr>
								</c:forEach>
							</tbody>
						</table>
						<div class="pagination pagination-centered">
							<m:page pageNo="${dp.pageNo}" pageSize="${dp.pageSize}" totalCount="${dp.totalRecord}" url="fullCutList.do?${pageContext.request.queryString}"/>
						</div>
						<!--/span-->
					</div>
					<!--/row-->
					<!-- PAGE CONTENT ENDS HERE -->
				</div>
				<!--/row-->
			</div>
			<!--/#page-content-->
		</div>
		<!-- #main-content -->
	</div>
	<!--/.fluid-container#main-container-->
	<!-- basic scripts -->
	<script src="/statics/YHZ/1.9.1/jquery.min.js"></script>
	<script type="text/javascript">
		window.jQuery
				|| document
						.write("<script src='/statics/YHZ/js/jquery-1.9.1.min.js'>\x3C/script>");
	</script>
	<script src="/statics/YHZ/js/bootstrap.min.js"></script>
	<!-- page specific plugin scripts -->
	<!-- ace scripts -->
	<script src="/statics/YHZ/js/ace-elements.min.js"></script>
	<script src="/statics/YHZ/js/ace.min.js"></script>
	<!-- inline scripts related to this page -->
</body>
</html>